/// 专家评标结果模型
class ExpertBidResult {
  /// 是否成功
  final bool success;
  
  /// 返回消息
  final String? message;
  
  /// 错误消息
  final String? errorMessage;

  ExpertBidResult({
    required this.success,
    this.message,
    this.errorMessage,
  });

  factory ExpertBidResult.success({String? message}) {
    return ExpertBidResult(
      success: true,
      message: message,
      errorMessage: null,
    );
  }

  factory ExpertBidResult.failure({required String errorMessage}) {
    return ExpertBidResult(
      success: false,
      message: null,
      errorMessage: errorMessage,
    );
  }

  @override
  String toString() {
    return 'ExpertBidResult(success: $success, message: $message, errorMessage: $errorMessage)';
  }
}
